<template>
	<view class="myCard">
		<view class="listItem y-c" v-for="(i,index) in 10" :key="index">
			<view class="item_top y-c border">
				<view class="item_top_row x-bc mb-2">
					<view>特惠洗车卡</view>
					<view>¥15.00</view>
				</view>
				<view class="item_top_row x-bc mb-2">
					<view>全店通用</view>
				</view>
			</view>
			<view class="item_bot y-c">
				<view class="item_top_row x-bc mb-2 mt-2">
					<view>洗车次数</view>
					<view>5次</view>
				</view>
				<view class="item_top_row x-bc mb-2 ">
					<view>有效期</view>
					<view>一个月</view>
				</view>
				<view class="item_top_row x-bc mb-2 ">
					<view class="item_over">包含5次洗车、单次洗车低至8.9，餐共节省优惠...</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.myCard {
		padding: 40rpx;

		.listItem {
			color: $common-color;
			background: linear-gradient(45deg, #C0EAE4, transparent);
			border-radius: 20rpx;
			padding: 20rpx;
			box-sizing: border-box;
			margin-top: 20rpx;

			.item_over {
				text-overflow: ellipsis;
				white-space: nowrap;
				overflow: hidden;
			}
		}

		.border {
			border-bottom: 0.5rpx solid $border;
		}
	}
</style>